<script src="${request.contextPath}/plugins/laydate/laydate.js"></script>
<form id="searchTime" action="${request.contextPath}/user_order">
<p style="float:right;margin-bottom:10px;">
<input type="hidden" name="status" value="${(status)!''}" id="user_order_status"/>
开始日期：<input class="laydate-icon" name="startTime"  value="${(startTime)!''}" id="start" style="width:100px; margin-right:10px;"></input>
结束日期：<input class="laydate-icon" name="endTime" value="${(endTime)!''}" id="end" style="width:100px;margin-right:10px;"></input>
<span style="padding:4px;border-radius:3px;background-color: #f7f7f7;cursor:pointer;" onclick="submitTime(${(status)!''});">查询</span>
</p>
</form>
<script>
var start = {
  elem: '#start',
  format: 'YYYY-MM-DD',
  min: '1900-06-16 23:59:59', //设定最小日期
  max: '2099-06-16 23:59:59', //最大日期
  istime: true,
  istoday: false,
  choose: function(datas){
     end.min = datas; //开始日选好后，重置结束日的最小日期
     end.start = datas //将结束日的初始值设定为开始日
  }
};
var end = {
  elem: '#end',
  format: 'YYYY-MM-DD',
  min: '1900-06-16 23:59:59',
  max: '2099-06-16 23:59:59',
  istime: true,
  istoday: false,
  choose: function(datas){
    start.max = datas; //结束日选好后，重置开始日的最大日期
  }
};
laydate(start);
laydate(end);

function submitTime(status){
	$("#user_order_status").val(status);
	$("#searchTime").submit();
}
</script>
    